#include"myfile.h"
//缓冲区

int main()
{
    _FILE *fp = _fopen("test.txt", "a");

    const char *msg = "hello world\n";
    int cnt = 10;
    while(cnt){
        _fwrite(msg,strlen(msg),fp);
        sleep(1);
        cnt--;
    }

    _fclose(fp);

    return 0;
}
